<template>
  <div class="my_header">
    <van-icon name="arrow-left" @click="$router.back()"/>
    <section>
      <slot></slot>
    </section>
  </div>
</template>

<script>
export default {
  setup() {},
};
</script>
<style lang="scss" scoped>
.my_header{
  height: 100px;
  display: flex;
  align-items: center;
  font-size: 32px;
  background: #fff;
  .van-icon{
      width: 80px;
      text-align: center;
  }
  section{
    flex: 1;
    text-align: center;
  }
}
</style>